<?php
Core\Uses\Gravar('Core.handler.exception', NULL);

if(function_exists('ini_set')) {

	ini_set('display_errors', 1);
}

register_shutdown_function('Core\Uses\shutdown');

Core\Uses\Gravar('Core.debug.status', TRUE);
Core\Uses\Gravar('Core.debug.level', 3);
Core\Uses\Gravar('Core.development.status', TRUE);
Core\Uses\Gravar('Core.lang.output', 'pt-br');
Core\Uses\Gravar('Core.lang.internal', 'pt_BR');
Core\Uses\Gravar('Core.lang.output', 'pt-br');
Core\Uses\Gravar('Core.coding.output', 'UTF-8', 'protegido');
Core\Uses\Gravar('Core.coding.internal', 'UTF-8', 'protegido');
Core\Uses\Gravar('Session.start', TRUE, 'protegido');
Core\Uses\Gravar('Core.url.separator.params', '-');
Core\Uses\Gravar('Core.reservedAppsNames', array('behaviors', 'components', 'helpers', 'elements', 'layouts', 'pages', 'locales', 'vendors', 'views', 'prototypes', 'models', 'controllers', 'plugins', 'extensions', 'packages', 'libs', 'temporary', 'interfaces', 'tests', 'core', 'jabez', 'jabez-php', 'app', 'default', 'www', 'webroot'), 'privado');

$_nameDirLibs = 'libs';
$_nameDirControllers = 'controllers';
$_nameDirModels = 'models';
$_nameDirViews = 'views';
$_nameDirFolderViews = 'folder-views';
$_nameDirDesign = 'design';
$_nameDirHelpers = 'helpers';
$_nameDirExtensions = 'extensions';
$_nameDirModules = 'modules';
$_nameDirPlugins = 'plugins';
$_nameDirPackages = 'packages';
$_nameDirComponents = 'components';
$_nameDirBehaviors = 'behaviors';
$_nameDirDataSources = 'datasouces';
$_nameDirElements = 'elements';
$_nameDirPages = 'pages';
$_nameDirPrototypes = 'prototypes';
$_nameDirLayouts = 'layouts';

$internalLanguage = \Core\Uses\Ler('Core.lang.internal');
Core\Uses\Gravar('plugins.dir.'.DIR_PLUGIN_CORE.'.default.name', $_nameDirPlugins, 'privado');
Core\Uses\Gravar('packages.dir.'.DIR_PACKAGE_CORE.'.default.name', $_nameDirPackages, 'privado');

Core\Uses\InicializarDiretorios('Core', 'privado');

Core\Uses\Gravar('Core.lang.' . $internalLanguage . '.format.money.precision', 2);
Core\Uses\Gravar('Core.lang.' . $internalLanguage . '.format.money.currency', 'R$');
Core\Uses\Gravar('Core.lang.' . $internalLanguage . '.format.money.separator.cents', ',');
Core\Uses\Gravar('Core.lang.' . $internalLanguage . '.format.money.separator.thousands', '.');

$internalLanguage = 'en_US';

Core\Uses\Gravar('Core.lang.' . $internalLanguage . '.format.money.precision', 2);
Core\Uses\Gravar('Core.lang.' . $internalLanguage . '.format.money.currency', 'U$$');
Core\Uses\Gravar('Core.lang.' . $internalLanguage . '.format.money.separator.cents', '.');
Core\Uses\Gravar('Core.lang.' . $internalLanguage . '.format.money.separator.thousands', ',');

Core\Uses\Gravar('core.security.salt', '_jAbEz!@-9-(PHP+.5FRAMEwork*0_', 'publico');
Core\Uses\Gravar('Core.security.hash.algorithms', array('sha512', 'sha384', 'sha256', 'sha1', 'md5', 'crc32'), 'protegido');
Core\Uses\Gravar('Core.security.hash.algorithm', Core\Uses\getHash(), 'protegido');
Core\Uses\Gravar('Core.security.base64.loop', 3, 'protegido');

Core\Uses\Gravar('Core.requests.safe.post', array('core.extensions.modules.web-developer.controllers.html.codeOfElement'), 'publico');
Core\Uses\Gravar('Core.requests.safe.get', array(), 'publico');

define('SINGLETON', TRUE);
define('SECURITY_TOKEN', Core\Uses\getHash(uniqid(mt_rand() . REMOTE_ADDR, TRUE) . SERVER_ADDR));
define('SERVER_SECURITY_TOKEN', Core\Uses\getHash(uniqid(mt_rand() . SERVER_ADDR, TRUE) . REMOTE_ADDR));

/* PROJETO */

Core\Uses\InicializarDiretorios(ACTIVE_PROJECT, 'privado');
?>